@echo off
echo Compiling Java files...
javac -encoding UTF-8 VideoPlayer.java

if errorlevel 1 (
    echo Compilation failed!
    pause
    exit /b 1
)

echo Starting Video Player...
java VideoPlayer

pause 